/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-12-01
 * Time: 20:50
 */

//这里设置了两个占位符 T 和 V
public class Printer <T,V> {

    //设置两个泛型变量:
    T content1;
    V content2;

    public void print() {
        System.out.println(content1);
        System.out.println(content2);
    }

    //构造方法:
    public Printer(T content1, V content2) {
        this.content1 = content1;
        this.content2 = content2;
    }
}
